var arrayLike = {0: 'name', 1: 'age', 2: 'sex', length: 3 }
// 1. slice
console.log(Array.prototype.slice.call(arrayLike)); // ["name", "age", "sex"]
// 2. splice
console.log([].splice.call(arrayLike, 0));// ["name", "age", "sex"]
// 3. ES6 Array.from
arrayLike = {0: 'name', 1: 'age', 2: 'sex', length: 3 }
console.log(Array.from(arrayLike)); // ["name", "age", "sex"]
// 4. apply
console.log(Array.prototype.concat.apply([], arrayLike));// ["name", "age", "sex"]

// //.ES6 语法糖不能遍历
// console.log([...arrayLike]);//TypeError: arrayLike is not iterable
